package com.changhai.diabetes.service;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.changhai.diabetes.model.QueryDTO;
import com.changhai.diabetes.model.ResearchGroup;
import com.changhai.diabetes.model.TableForPatient;
import com.changhai.diabetes.model.User;
import com.changhai.diabetes.model.page.Page;

/**
 * 科研分组接口类
 * 
 * @author Andy
 * 
 */
public interface GroupService {

	public Page<?> searchQuery(QueryDTO queryDTO);

	public List<ResearchGroup> getGroupList();

	public List<TableForPatient> searchTables();
	
	public ResearchGroup searchGroupById(Long researchgroupid);
	
	public List<ResearchGroup>  searchSubGroupbyParentId(Long researchgroupid);

	@Transactional
	public void saveEditGroup(ResearchGroup researchGroup, String[] groupbh, String[] groupname) throws Exception;

	@Transactional
	public Long saveNewGroup(ResearchGroup researchGroup)throws Exception;
	
	public void saveEditHospital(User user);
}
